package cn.hr.entity;


import java.sql.Timestamp;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.Table;


/**
 * 留言实体类
 */
@Entity
@Table(name="tb_message"
    ,catalog="hrm"
)

public class Message  implements java.io.Serializable {


    // Fields    

     /**
	 * 
	 */
	private static final long serialVersionUID = 5221282396822882728L;
	private Long id;
     private String replyPeople;
     private String content;
     private Timestamp publishTime;
     private String qq;
     private String email;
     private String replyContent;


    // Constructors

    /** default constructor */
    public Message() {
    }

	/** minimal constructor */
    public Message(String replyPeople, String content, Timestamp publishTime) {
        this.replyPeople = replyPeople;
        this.content = content;
        this.publishTime = publishTime;
    }
    
    /** full constructor */
    public Message(String replyPeople, String content, Timestamp publishTime, String qq, String email, String replyContent) {
        this.replyPeople = replyPeople;
        this.content = content;
        this.publishTime = publishTime;
        this.qq = qq;
        this.email = email;
        this.replyContent = replyContent;
    }

   
    // Property accessors
    @Id @GeneratedValue(strategy=IDENTITY)
    
    @Column(name="id", unique=true, nullable=false)

    public Long getId() {
        return this.id;
    }
    
    public void setId(Long id) {
        this.id = id;
    }
    
    @Column(name="replyPeople", nullable=false, length=16)

    public String getReplyPeople() {
        return this.replyPeople;
    }
    
    public void setReplyPeople(String replyPeople) {
        this.replyPeople = replyPeople;
    }
    
    @Column(name="content", nullable=false, length=500)

    public String getContent() {
        return this.content;
    }
    
    public void setContent(String content) {
        this.content = content;
    }
    
    @Column(name="publishTime", nullable=false, length=0)

    public Timestamp getPublishTime() {
        return this.publishTime;
    }
    
    public void setPublishTime(Timestamp publishTime) {
        this.publishTime = publishTime;
    }
    
    @Column(name="qq", length=16)

    public String getQq() {
        return this.qq;
    }
    
    public void setQq(String qq) {
        this.qq = qq;
    }
    
    @Column(name="email", length=32)

    public String getEmail() {
        return this.email;
    }
    
    public void setEmail(String email) {
        this.email = email;
    }
    
    @Column(name="replyContent")

    public String getReplyContent() {
        return this.replyContent;
    }
    
    public void setReplyContent(String replyContent) {
        this.replyContent = replyContent;
    }
   








}